/**
 * PlayerColor.java
 * Created: 14.02.2011, 10:14:08
 */

package model;

/**
 * An enumeration of the two players.
 * @author Jan-Philipp Kappmeier
 */
public enum PlayerColor {
	/** The white player. */
	White,
	/** The black player. */
	Black;

	/**
	 * Toggles the player color.
	 * @return the other player color
	 */
	public final PlayerColor toggle() {
		return this == White ? Black : White;
	}
}
